package api

import "mime/multipart"

type UploadRequest struct {
	FileName string                `json:"file_name" binding:"required"`
	File     *multipart.FileHeader `json:"image" binding:"required"`
	Type     string                `json:"type" binding:"required"`
}

func (image UploadRequest) GetMessage() ValidatorMessages {
	return ValidatorMessages{
		"FileName.required": "文件名不能为空",
		"File.required":     "文件不能为空",
		"Type.required":     "文件类型不能为空",
	}
}
